#ifndef _ADV7179_H
#define _ADV7179_H


//#define	ENCODER_SET_NORM	   0x04

#define ADV7179_IOC_MAGIC	'D'

typedef struct _adv7179_reg
{
	unsigned char chip;		// [0-2] : 0:第一组...
	unsigned char reg;
	unsigned char value;
}adv7179_reg;


#define VIDEO_MODE_656_PAL             0
#define VIDEO_MODE_656_NTSC            1
#define VIDEO_MODE_601_PAL_MASTER      2
#define VIDEO_MODE_601_NTSC_MASTER     3
#define VIDEO_MODE_601_PAL_SLAVER      4
#define VIDEO_MODE_601_NTSC_SLAVER     5

#define VIDEO_MODE_CCIR656           0
#define VIDEO_MODE_CCIR601           1
#define VIDEO_MODE_LCD               2

#define VIDEO_NORM_PAL		0
#define VIDEO_NORM_NTSC		1
#define VIDEO_NORM_SUPPORT      2
#define VIDEO_MODE_SECAM	2
#define VIDEO_MODE_AUTO		3

#define VIDEO_MODE_MASTER            1
#define VIDEO_MODE_SLAVER            0

#define ENCODER_SET_NORM			_IOWR(ADV7179_IOC_MAGIC, 0x04, unsigned char) 

#define ADV7179_GET_ALL_REG			_IOWR(ADV7179_IOC_MAGIC, 116, unsigned char) 
#define ADV7179_GET_SIGNLE_REG		_IOWR(ADV7179_IOC_MAGIC, 117, unsigned char) 
#define ADV7179_SET_SIGNLE_REG		_IOWR(ADV7179_IOC_MAGIC, 118, unsigned char) 


#endif

